﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Easy.BLL;
using Easy.Operation;

namespace Easy.Web.Service.Data
{
    /// <summary>
    /// 获取当前用户的SiteMap
    /// </summary>
    public class GetSiteMap : BaseHttpHandler
    {

        public override void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            int clienttpye = (context.Request["ClientType"] == null ? 10 : Convert.ToInt32(context.Request["ClientType"]));

            string json = new SiteMapManager().GetSiteMapByUserId(CurrentUserId, clienttpye);
            context.Response.Write(json);
        }


    }
}